package com.zt.ztyh.vo.funds;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class FundsUserVo implements Serializable {
    @Schema(description = "理财id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long fid;

    @Schema(description = "理财用户id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Schema(description = "用户id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long uid;

    @Schema(description = "理财名称")
    private String fundsname;
    @Schema(description = "图标")
    private String remark;

    @Schema(description = "买入金额")
    private BigDecimal amount;

    @Schema(description = "理财状态")
    private Integer state;

    @Schema(description = "利率")
    private BigDecimal rate;

    @Schema(description = "理财收益")
    private BigDecimal redundancy1;

    @Schema(description = "买入时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @Schema(description = "卖出时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

}
